package com.vhall.component.entity.channel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 渠道表
 *
 * @TableName channels
 */
@TableName(value = "channels")
@Data
public class Channels implements Serializable {
    /**
     * 渠道ID
     */
    @TableId(type = IdType.AUTO)
    private Object channelId;

    /**
     * 渠道名
     */
    @NotBlank(message = "渠道名不能为空")
    private String name;

    /**
     * 渠道标识
     */
    @NotBlank(message = "渠道标识不能为空")
    private String marking;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空")
    private String remark;

    /**
     * 是否启用，0：否，1：是
     */
    private Integer isEnable;

    /**
     * 修改时间
     */
    private Date updatedAt;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 删除时间
     */
    private Date deletedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}